package com.zhongli.devplatform.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 用户类型枚举
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/7/30 11:48
 */
@Getter
public enum UserType {

    Student(0,"学生"),       // 学生
    Teacher(1,"老师"),       // 老师
    Parent(2,"家长");         // 家长

    @EnumValue
    private int code;

    @JsonValue
    private String message;

    UserType(int code,String message){
        this.code = code;
        this.message = message;
    }
}
